package band.wukong.practice.javase.core.io.typicalUsage;

import java.io.IOException;
import java.io.StringReader;

/**
 * Desc: 从内存输入
 * Author: sunjs
 * Date: 2009-12-17 16:19:38
 */
public class MemoryInput {
    static final String FILE_IN = "src/com/jsun/javase/corepackage/io/testdir/poem.txt";

    public static void main(String[] args) throws IOException {
        StringReader in = new StringReader(BufferedInputFile.read(FILE_IN));
        int c;
        while((c=in.read()) != -1) {
            System.out.print((char)c);
        }
    }
}
